package com.dao.luo;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.entity.Wordsel;

public interface WordselDao extends CrudRepository<Wordsel, Long>{
	@Query("from Wordsel wsel inner join fetch wsel.word word"
			+ " where word.wordno = ?1  order by wsel.selvalno asc")
	public List<Wordsel> getWordselsByWordno(Long wordno);
}
